package com.ruoyi.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.SysPost;

import java.util.List;

public interface PostService extends IService<SysPost> {
    IPage<SysPost> selectPostList(Page<SysPost> page, SysPost post);

    boolean checkPostNameUnique(SysPost post);

    boolean checkPostCodeUnique(SysPost post);

    List<Long> selectPostListByUserId(Long userId);
}
